import request from '@/utils/request'

// 查询AI报警配置列表
export function listAiWarnConfig(query) {
    return request({
        url: '/video/aiWarnConfig/list',
        method: 'get',
        params: query
    })
}

// 查询AI报警配置详细
export function getAiWarnConfig(id) {
    return request({
        url: '/video/aiWarnConfig/' + id,
        method: 'get'
    })
}

// 新增AI报警配置
export function addAiWarnConfig(data) {
    return request({
        url: '/video/aiWarnConfig',
        method: 'post',
        data: data
    })
}

// 修改AI报警配置
export function updateAiWarnConfig(data) {
    return request({
        url: '/video/aiWarnConfig',
        method: 'put',
        data: data
    })
}

// 删除AI报警配置
export function delAiWarnConfig(id) {
    return request({
        url: '/video/aiWarnConfig/' + id,
        method: 'delete'
    })
}
